//
//  YCAlertView.h
//  YCAlertController
//
//  Created by Yochia on 2017/1/12.
//  Copyright © 2017年 Team Brutal. All rights reserved.
//

#import "YCPopupView.h"
#import "YCAlertAction.h"

@class YCAlertAction;
@interface YCAlertView : YCPopupView

@property (nonatomic, strong) NSString *title;

@property (nonatomic, strong) NSString *message;

@property (nonatomic, strong, readonly) NSMutableArray<UIView *> * alertCustomViewsArray;
- (void)addCustomView:(UIView *)customView;

- (void)addTextFieldWithConfigurationHandler:(void (^)(UITextField *textField))configurationHandler;
@property (nonatomic, readonly) NSArray<UITextField *> *textFields;

- (void)removeCustomView:(UIView *)customView;
- (void)removeAllCustomView;

@property (nonatomic, strong, readonly) NSMutableArray<YCAlertAction *> * alertActionsArray;
- (void)addAction:(YCAlertAction *)action;
- (void)setPreferredAction:(YCAlertAction *)preferredAction;

- (void)removeAction:(YCAlertAction *)action;
- (void)removeAllAction;

@property (nonatomic) BOOL dismissedWhenClicked;

@end
